﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PropertyManagement.login
{
    public partial class login2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["sname"] == null)
            {
                Panel1.Visible = true;
                Panel2.Visible = false;
            }
            else if (Session["sname"] != null)
            {
                Panel2.Visible = true;
                Label2.Text = "欢迎" + Session["sname"].ToString() + "用户登录";
                Panel1.Visible = false;
            }
            string url = Request.UrlReferrer.ToString();
            Session["url"] = url;
        }
    }
}